package com.itheima.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel("员工信息明细")
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("员工唯一id")
    private Long id;

    @ApiModelProperty("员工登录名")
    private String username;

    @ApiModelProperty("员工姓名")
    private String name;

    @ApiModelProperty("登录密码")
    private String password;

    @ApiModelProperty("员工电话")
    private String phone;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("身份证号")
    @TableField("id_number")
    private String idNumber;

    @ApiModelProperty("账户状态")
    private Integer status;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)//插入时填充
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时填充
    private LocalDateTime updateTime;

    @ApiModelProperty("添加人")
    @TableField(fill = FieldFill.INSERT)//插入时填充
    private Long createUser;

    @ApiModelProperty("更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时填充
    private Long updateUser;

}
